package com.algorithm;

import java.util.Enumeration;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;

/**
 * @author Jack
 * @description: TODO
 * @date 2021/9/17 20:40
 */
public class TestMain {
    public static void main(String[] args) {
        Map<String, String> env = System.getenv();
        Iterator<Map.Entry<String, String>> iterator = env.entrySet().iterator();
        while (iterator.hasNext()){
            Map.Entry<String, String> next = iterator.next();
            //System.out.println(next.getKey()+"="+next.getValue());
        }

        Properties properties = System.getProperties();
        Enumeration<?> enumeration = properties.propertyNames();
        while (enumeration.hasMoreElements()){
            Object o = enumeration.nextElement();
            System.out.println(o+"===="+properties.get(o));
        }


    }
}
